import { useEffect } from 'react';

/**
 * 设置页面title
 * @param title
 * @returns
 */
export default function useTitle (title: string) {
    useEffect(() => {
        document.title = title;
    }, []);
    return;
}
